package it.blueocean.acanto.taglibrary.jsp.taglib.tags.exceptions;

public class ComponentStateBeanNotFoundException extends Exception
{
	private static final long serialVersionUID = 6832413059829369760L;
	
	private String beanId_;

	public ComponentStateBeanNotFoundException(String paramString)
	{
		this.beanId_ = paramString;
	}

	public ComponentStateBeanNotFoundException(String paramString1, String paramString2)
	{
		super(paramString2);
		this.beanId_ = paramString1;
	}

	public ComponentStateBeanNotFoundException(String paramString, Throwable paramThrowable)
	{
		super(paramThrowable);
		this.beanId_ = paramString;
	}

	public ComponentStateBeanNotFoundException(String paramString1, String paramString2, Throwable paramThrowable)
	{
		super(paramString2, paramThrowable);
		this.beanId_ = paramString1;
	}

	public String toString()
	{
		if(getMessage() != null)
			return super.toString();
		return "StateBean for component " + this.beanId_ + " was not found";
	}
}
